<template>
    <div class="hello">
        <slot :cname="items[2].cname"></slot>
        <slot :addr="items[2].addr"></slot>
        <slot age = "18"></slot>
    </div>
</template>

<script>
    export default {
        name: "testSlot",
        data() {
            return {
                num: 100
            }
        },
        props: ['items'],
        created() {
            console.log('items', this.$props.items);
        }
    }
</script>

<style scoped>

</style>
